package icu.zqyhdm.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Description 记录文章和标签的对应关系
 * @Author lifu
 * @Date 2021/6/22 15:15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("article_tag")
@ApiModel(description = "文章和标签的对应关系")
public class ArticleTag implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "文章id")
    @TableField(value = "article_id")
    private Integer articleId;

    @ApiModelProperty(value = "标签id")
    @TableField(value = "tag_id")
    private Integer tagId;

}
